package utils
{
	import flash.system.Capabilities;
	
	import components.shipping.CountryComboBox;
	
	import datas.UrlData;

	public class SystemInfoHelper
	{
		//public static const VERSION:String="";
		public static var dumpInfo:String;
		public function SystemInfoHelper()
		{
		}
		
		public static function dump(urlData:UrlData):void {
			var res:String = "";
			res += "[STATE]: " + urlData.state + "\n";
			res += "[URL]: " + urlData.url + "\n";
			res += "[ASIN]: " + urlData.asin + "\n";
			res += "[DOMAIN]: " + urlData.domain + "\n";
			res += "[OS]: " + Capabilities.os + "\n";
			res += "[OS-VERSION]: " + Capabilities.version + "\n";
			res += "[APP-VERSION]: " + CHECK_SHIPPING::version + "\n";
			res += "[REGION]: " + SharedObjectsHelper.getSelectedCountry();
			dumpInfo = res;
		}
	}
}